package top.kaoshanji.q1ch07a.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * 代码清单-q1ch07a-216页a：@ResponseStatus注解，将异常映射为特定的状态码
 * 如果资源没有找到就转换为HTTP状态码
 * @author kaoshanji
 * ^_^
 * create time 2025/4/25 15:07
 */
@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "404资源没有找到")
public class NotFound404Exception extends RuntimeException {}
